400 |
How can I display the column using currency format and enlarge the font for certain values
|
399 |
How can I get the number of occurrences of a specified string in the cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L""); EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"occurrences"))); var_Column->PutComputedField(L"lower(%0) count 'o'"); var_Column->PutFormatColumn(L"'contains ' + value + ' of \\'o\\' chars'"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root"); var_Items->InsertItem(h,vtMissing,"Child 1 oooof the root"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->InsertItem(h,vtMissing,"Child 3"); var_Items->PutExpandItem(h,VARIANT_TRUE); |
398 |
How can I display dates in my format
|
397 |
How can I display dates in short format
|
396 |
How can I display dates in long format
|
395 |
How can I display only the right part of the cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L""); EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Right"))); var_Column->PutComputedField(L"%0 right 2"); var_Column->PutFormatColumn(L"'\"' + value + '\"'"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->InsertItem(h,vtMissing,"SChild 3"); var_Items->PutExpandItem(h,VARIANT_TRUE); |
394 |
How can I display only the left part of the cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L""); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Left")))->PutComputedField(L"%0 left 2"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->InsertItem(h,vtMissing,"SChild 3"); var_Items->PutExpandItem(h,VARIANT_TRUE); |
393 |
How can I display true or false instead 0 and -1
|
392 |
How can I display icons or images instead numbers
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Icons"))); var_Column->PutDef(EXCOMBOBOXLib::exCellCaptionFormat,long(1)); var_Column->PutFormatColumn(L"'The cell displays the icon <img>'+value+'</img> instead ' + value"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->AddItem(long(1)); var_Items->AddItem(long(2)); var_Items->AddItem(long(3)); |
391 |
How can I display the column using currency
|
390 |
How can I display the currency only for not empty cells
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Number"); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Currency")))->PutComputedField(L"len(%0) ? currency(dbl(%0)) : ''"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->AddItem("1.23"); var_Items->AddItem("2.34"); var_Items->AddItem("0"); var_Items->PutItemBackColor(var_Items->AddItem(vtMissing),RGB(255,128,128)); var_Items->AddItem("10000.99"); |
389 |
Is there a function to display the number of days between two date including the number of hours
|
388 |
Is there a function to display the number of days between two date including the number of hours
|
387 |
How can I display the number of days between two dates
|
386 |
How can I get second part of the date
|
385 |
How can I get minute part of the date
|
384 |
How can I check the hour part only so I know it was afternoon
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetConditionalFormats()->Add(L"hour(%0)>=12",vtMissing)->PutBold(VARIANT_TRUE); spComboBox1->GetColumns()->Add(L"Date"); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Hour")))->PutComputedField(L"hour(%0)"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->AddItem(COleDateTime(2001,1,11,10,00,00).operator DATE()); var_Items->AddItem(COleDateTime(2002,2,22,11,00,00).operator DATE()); var_Items->AddItem(COleDateTime(2003,3,13,12,00,00).operator DATE()); var_Items->AddItem(COleDateTime(2004,4,14,13,00,00).operator DATE()); |
383 |
What about a function to get the day in the week, or days since Sunday
|
382 |
Is there any function to get the day of the year or number of days since January 1st
|
381 |
How can I display only the day of the date
|
380 |
How can I display only the month of the date
|
379 |
How can I get only the year part from a date expression
|
378 |
Can I convert the expression to date
|
377 |
Can I convert the expression to a number, double or float
|
376 |
How can I display dates in long format
|
375 |
How can I display dates in short format
|
374 |
How can I display the time only of a date expression
|
373 |
Is there any function to display currencies, or money formatted as in the control panel
|
372 |
How can I convert the expression to a string so I can look into the date string expression for month's name
|
371 |
Can I display the absolute value or positive part of the number
|
370 |
Is there any function to get largest number with no fraction part that is not greater than the value
|
369 |
Is there any function to round the values base on the .5 value
|
368 |
How can I get or display the integer part of the cell
|
367 |
How can I display names as proper ( first leter of the word must be in uppercase, and the rest in lowercase )
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"")))->PutComputedField(L"proper(%0)"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("root"); var_Items->InsertItem(h,vtMissing,"child child"); var_Items->InsertItem(h,vtMissing,"child child"); var_Items->InsertItem(h,vtMissing,"child child"); var_Items->PutExpandItem(h,VARIANT_TRUE); |
366 |
Is there any option to display cells in uppercase
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"")))->PutComputedField(L"upper(%0)"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->InsertItem(h,vtMissing,"Chld 3"); var_Items->PutExpandItem(h,VARIANT_TRUE); |
365 |
Is there any option to display cells in lowercase
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"")))->PutComputedField(L"lower(%0)"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->InsertItem(h,vtMissing,"Chld 3"); var_Items->PutExpandItem(h,VARIANT_TRUE); |
364 |
How can I mark the cells that has a specified type, ie strings only
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetConditionalFormats()->Add(L"type(%0) = 8",vtMissing)->PutForeColor(RGB(255,0,0)); spComboBox1->GetColumns()->Add(L""); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,long(2)); var_Items->InsertItem(h,vtMissing,"Chld 3"); var_Items->PutExpandItem(h,VARIANT_TRUE); |
363 |
How can I bold the items that contains data or those who displays empty strings
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetConditionalFormats()->Add(L"not len(%1)=0",vtMissing)->PutBold(VARIANT_TRUE); spComboBox1->GetColumns()->Add(L"C1"); spComboBox1->GetColumns()->Add(L"C2"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root"); var_Items->InsertItem(h,vtMissing,"Child 1"); long hC = var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutCellCaption(hC,long(1),"1"); var_Items->InsertItem(h,vtMissing,"Child 3"); var_Items->PutExpandItem(h,VARIANT_TRUE); |
362 |
Can I change the background color for items or cells that contains a specified string
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetConditionalFormats()->Add(L"%0 contains 'hi'",vtMissing)->PutBackColor(RGB(255,0,0)); spComboBox1->GetColumns()->Add(L""); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->InsertItem(h,vtMissing,"Chld 3"); var_Items->PutExpandItem(h,VARIANT_TRUE); |
361 |
Is there any option to change the fore color for cells or items that ends with a specified string
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetConditionalFormats()->Add(L"%0 endwith '22'",vtMissing)->PutForeColor(RGB(255,0,0)); spComboBox1->GetColumns()->Add(L""); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 1.22"); var_Items->InsertItem(h,vtMissing,"Child 2.22"); var_Items->PutExpandItem(h,VARIANT_TRUE); |
360 |
How can I highlight the cells or items that starts with a specified string
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetConditionalFormats()->Add(L"%0 startwith 'C'",vtMissing)->PutUnderline(VARIANT_TRUE); spComboBox1->GetColumns()->Add(L""); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->InsertItem(h,vtMissing,"SChild 3"); var_Items->PutExpandItem(h,VARIANT_TRUE); |
359 |
How can I change the background color or the visual appearance using ebn for a particular column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); EXCOMBOBOXLib::IColumnsPtr var_Columns = spComboBox1->GetColumns(); var_Columns->Add(L"Column 1"); ((EXCOMBOBOXLib::IColumnPtr)(var_Columns->Add(L"Column 2")))->PutDef(EXCOMBOBOXLib::exHeaderBackColor,long(16777216)); ((EXCOMBOBOXLib::IColumnPtr)(var_Columns->Add(L"Column 3")))->PutDef(EXCOMBOBOXLib::exHeaderBackColor,long(16777471)); var_Columns->Add(L"Column 4"); |
358 |
How can I change the background color for a particular column
|
357 |
Does your control support prompt feature
|
356 |
How can I display the column's header using multiple lines
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutHeaderHeight(128); spComboBox1->PutHeaderSingleLine(VARIANT_FALSE); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"This is just a column that should break the header.")))->PutWidth(32); spComboBox1->GetColumns()->Add(L"This is just another column that should break the header."); |
355 |
How can I sort the value gets listed in the drop down filter window
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exLinesAtRoot); spComboBox1->PutMarkSearchColumn(VARIANT_FALSE); spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarAll,L""); spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarBlanks,L""); spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarNonBlanks,L""); EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"P1"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutDisplayFilterPattern(VARIANT_FALSE); var_Column->PutFilterList(EXCOMBOBOXLib::exSortItemsDesc); EXCOMBOBOXLib::IColumnPtr var_Column1 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"P2"))); var_Column1->PutDisplayFilterButton(VARIANT_TRUE); var_Column1->PutDisplayFilterPattern(VARIANT_FALSE); var_Column1->PutFilterList(EXCOMBOBOXLib::exSortItemsAsc); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Z3"); var_Items->PutCellCaption(h,long(1),"C"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Z1"),long(1),"B"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Z2"),long(1),"A"); var_Items->PutExpandItem(h,VARIANT_TRUE); |
354 |
Is there any property to disable the popup/context menu being shown when the user does a right click in the control's label area
|
353 |
How can I align the text/caption on the scroll bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutScrollPartCaption(EXCOMBOBOXLib::exHScroll,EXCOMBOBOXLib::exLowerBackPart,L"left"); spComboBox1->PutScrollPartCaptionAlignment(EXCOMBOBOXLib::exHScroll,EXCOMBOBOXLib::exLowerBackPart,EXCOMBOBOXLib::LeftAlignment); spComboBox1->PutScrollPartCaption(EXCOMBOBOXLib::exHScroll,EXCOMBOBOXLib::exUpperBackPart,L"right"); spComboBox1->PutScrollPartCaptionAlignment(EXCOMBOBOXLib::exHScroll,EXCOMBOBOXLib::exUpperBackPart,EXCOMBOBOXLib::RightAlignment); spComboBox1->PutColumnAutoResize(VARIANT_FALSE); spComboBox1->GetColumns()->Add(L"1"); spComboBox1->GetColumns()->Add(L"2"); spComboBox1->GetColumns()->Add(L"3"); spComboBox1->GetColumns()->Add(L"4"); spComboBox1->GetColumns()->Add(L"5"); spComboBox1->GetColumns()->Add(L"6"); |
352 |
Does you control support RTL languages or if there is a property RightToLeft
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutRightToLeft(VARIANT_TRUE); spComboBox1->PutItemsAllowSizing(EXCOMBOBOXLib::exResizeItem); spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exHLines); spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exLinesAtRoot); spComboBox1->PutScrollBySingleLine(VARIANT_TRUE); spComboBox1->PutDefaultItemHeight(64); EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column"))); var_Column->PutAlignment(EXCOMBOBOXLib::RightAlignment); var_Column->PutHeaderAlignment(EXCOMBOBOXLib::RightAlignment); var_Column->PutEditAlignment(EXCOMBOBOXLib::RightAlignment); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->AddItem("Item 1"); var_Items->PutItemHeight(var_Items->InsertItem(var_Items->AddItem("Parent"),vtMissing,"Item 2"),48); var_Items->AddItem("Item 3"); var_Items->PutExpandItem(var_Items->GetItemByIndex(1),VARIANT_TRUE); |
351 |
How do I enable resizing all the items at runtime
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutItemsAllowSizing(EXCOMBOBOXLib::exResizeAllItems); spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exHLines); spComboBox1->GetColumns()->Add(L"Column"); spComboBox1->GetItems()->AddItem("Item 1"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->PutItemHeight(var_Items->AddItem("Item 2"),48); spComboBox1->GetItems()->AddItem("Item 3"); |
350 |
How can I remove the filter
|
349 |
How do I display the icons being selected in the control's label
|
348 |
How do I select a value
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutIntegralHeight(VARIANT_TRUE); spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exGroupLinesAtRoot); spComboBox1->PutTreeColumnIndex(1); spComboBox1->GetColumns()->Add(L"Column 1"); spComboBox1->GetColumns()->Add(L"Column 2"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1.1"); var_Items->PutCellCaption(h,long(1),"Root 1.2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 1.1"),long(1),"Child 1.2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 2.1"),long(1),"Child 2.2"); var_Items->PutExpandItem(h,VARIANT_TRUE); h = var_Items->AddItem("Root 2.1"); var_Items->PutCellCaption(h,long(1),"Root 2.2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 1.1"),long(1),"Child 1.2"); spComboBox1->PutValue("Root 1.1"); |
347 |
How do I select a value
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutIntegralHeight(VARIANT_TRUE); spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exGroupLinesAtRoot); spComboBox1->PutTreeColumnIndex(1); spComboBox1->GetColumns()->Add(L"Column 1"); spComboBox1->GetColumns()->Add(L"Column 2"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1.1"); var_Items->PutCellCaption(h,long(1),"Root 1.2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 1.1"),long(1),"Child 1.2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 2.1"),long(1),"Child 2.2"); var_Items->PutExpandItem(h,VARIANT_TRUE); h = var_Items->AddItem("Root 2.1"); var_Items->PutCellCaption(h,long(1),"Root 2.2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 1.1"),long(1),"Child 1.2"); spComboBox1->PutSelect(long(1),"Root 1.2"); |
346 |
How do change the visual appearance for the drop down border, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spComboBox1->PutDropDownBorder(EXCOMBOBOXLib::AppearanceEnum(0x1000000)); |
345 |
How do I remove the drop down's border
|
344 |
How can I change the foreground color for edit controls
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutForeColorEdit(RGB(255,0,0)); spComboBox1->PutIntegralHeight(VARIANT_TRUE); spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exGroupLinesAtRoot); spComboBox1->PutTreeColumnIndex(1); spComboBox1->GetColumns()->Add(L"Column 1"); spComboBox1->GetColumns()->Add(L"Column 2"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1.1"); var_Items->PutCellCaption(h,long(1),"Root 1.2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 1.1"),long(1),"Child 1.2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 2.1"),long(1),"Child 2.2"); var_Items->PutExpandItem(h,VARIANT_TRUE); h = var_Items->AddItem("Root 2.1"); var_Items->PutCellCaption(h,long(1),"Root 2.2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 1.1"),long(1),"Child 1.2"); spComboBox1->PutSelect(long(0),"Root 1.1"); |
343 |
How can I change the background color for edit controls
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutBackColorEdit(RGB(255,0,0)); spComboBox1->PutIntegralHeight(VARIANT_TRUE); spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exGroupLinesAtRoot); spComboBox1->PutTreeColumnIndex(1); spComboBox1->GetColumns()->Add(L"Column 1"); spComboBox1->GetColumns()->Add(L"Column 2"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1.1"); var_Items->PutCellCaption(h,long(1),"Root 1.2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 1.1"),long(1),"Child 1.2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 2.1"),long(1),"Child 2.2"); var_Items->PutExpandItem(h,VARIANT_TRUE); h = var_Items->AddItem("Root 2.1"); var_Items->PutCellCaption(h,long(1),"Root 2.2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 1.1"),long(1),"Child 1.2"); spComboBox1->PutSelect(long(0),"Root 1.1"); |
342 |
How can I hide the drop down buttons when the control loses the focus
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutHideDropDownButton(VARIANT_TRUE); spComboBox1->PutIntegralHeight(VARIANT_TRUE); spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exGroupLinesAtRoot); spComboBox1->PutTreeColumnIndex(1); spComboBox1->GetColumns()->Add(L"Column 1"); spComboBox1->GetColumns()->Add(L"Column 2"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1.1"); var_Items->PutCellCaption(h,long(1),"Root 1.2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 1.1"),long(1),"Child 1.2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 2.1"),long(1),"Child 2.2"); var_Items->PutExpandItem(h,VARIANT_TRUE); h = var_Items->AddItem("Root 2.1"); var_Items->PutCellCaption(h,long(1),"Root 2.2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 1.1"),long(1),"Child 1.2"); |
341 |
How can I ensure that the drop down portions doesn't show partial items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutIntegralHeight(VARIANT_TRUE); spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exGroupLinesAtRoot); spComboBox1->PutTreeColumnIndex(1); spComboBox1->GetColumns()->Add(L"Column 1"); spComboBox1->GetColumns()->Add(L"Column 2"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1.1"); var_Items->PutCellCaption(h,long(1),"Root 1.2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 1.1"),long(1),"Child 1.2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 2.1"),long(1),"Child 2.2"); var_Items->PutExpandItem(h,VARIANT_TRUE); h = var_Items->AddItem("Root 2.1"); var_Items->PutCellCaption(h,long(1),"Root 2.2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 1.1"),long(1),"Child 1.2"); |
340 |
How can I close the drop down window when user double clicks it
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutCloseOnDblClk(VARIANT_TRUE); spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exGroupLinesAtRoot); spComboBox1->PutTreeColumnIndex(1); spComboBox1->GetColumns()->Add(L"Column 1"); spComboBox1->GetColumns()->Add(L"Column 2"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1.1"); var_Items->PutCellCaption(h,long(1),"Root 1.2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 1.1"),long(1),"Child 1.2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 2.1"),long(1),"Child 2.2"); var_Items->PutExpandItem(h,VARIANT_TRUE); h = var_Items->AddItem("Root 2.1"); var_Items->PutCellCaption(h,long(1),"Root 2.2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 1.1"),long(1),"Child 1.2"); |
339 |
How do I get the handle of the drop down window
|
338 |
How do I specify the height of the control's label
|
337 |
The control selects the portion of text that doesn't match with the selected item. How can I avoid that
|
336 |
How can I show the drop down window as soon as user starts typing in the control
|
335 |
How do I change the text in the edit or label area
|
334 |
How do I lock or make read-only the control
|
333 |
How do I let user to resize only the height of the drop down window, at runtime
|
332 |
How do I let user to resize only the width of the drop down window, at runtime
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutAllowSizeGrip(VARIANT_TRUE); spComboBox1->PutAllowVResize(VARIANT_FALSE); spComboBox1->GetColumns()->Add(L"Column"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->AddItem("Item 3"); var_Items->AddItem("Item 1"); var_Items->AddItem("Item 2"); |
331 |
How do I let user to resize the drop down window, at runtime
|
330 |
How do I specify the height of the drop down window
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutHeightList(vtMissing,400); spComboBox1->PutMinWidthList(100); spComboBox1->PutAllowSizeGrip(VARIANT_TRUE); spComboBox1->GetColumns()->Add(L"Column"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->AddItem("Item 3"); var_Items->AddItem("Item 1"); var_Items->AddItem("Item 2"); |
329 |
How do I specify the minimum height of the drop down window
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(100); spComboBox1->PutAllowSizeGrip(VARIANT_TRUE); spComboBox1->GetColumns()->Add(L"Column"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->AddItem("Item 3"); var_Items->AddItem("Item 1"); var_Items->AddItem("Item 2"); |
328 |
How do I specify the width of the drop down window
|
327 |
How do I specify the minimum width of the drop down window
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinWidthList(100); spComboBox1->PutAllowSizeGrip(VARIANT_TRUE); spComboBox1->GetColumns()->Add(L"Column"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->AddItem("Item 3"); var_Items->AddItem("Item 1"); var_Items->AddItem("Item 2"); |
326 |
I have multiple columns, how can I display a single edit in the control's label
|
325 |
How do I turn off the auto complete feature
|
324 |
The control supports three styles: Simple, DropDown and DropDownList. How can I change the style
|
323 |
Is there any option to align the header to the left and the data to the right
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Left")))->PutAlignment(EXCOMBOBOXLib::LeftAlignment); EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Right"))); var_Column->PutAlignment(EXCOMBOBOXLib::RightAlignment); var_Column->PutHeaderAlignment(EXCOMBOBOXLib::RightAlignment); var_Column->PutEditAlignment(EXCOMBOBOXLib::RightAlignment); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->PutCellCaption(var_Items->AddItem("left"),long(1),"right"); |
322 |
How do I change the control's border, using your EBN files
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spComboBox1->PutAppearance(EXCOMBOBOXLib::AppearanceEnum(0x1000000)); |
321 |
Can I change the default border of the tooltip, using your EBN files
|
320 |
Can I change the background color for the tooltip
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutToolTipDelay(1); spComboBox1->PutToolTipWidth(364); spComboBox1->PutBackground(EXCOMBOBOXLib::exToolTipBackColor,RGB(255,0,0)); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"tootip")))->PutToolTip(L"this is a tooltip assigned to a column"); |
319 |
Does the tooltip support HTML format
|
318 |
Can I change the forecolor for the tooltip
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutToolTipDelay(1); spComboBox1->PutToolTipWidth(364); spComboBox1->PutBackground(EXCOMBOBOXLib::exToolTipForeColor,RGB(255,0,0)); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"tootip")))->PutToolTip(L"this is a tooltip assigned to a column"); |
317 |
Can I change the foreground color for the tooltip
|
316 |
How can I merge cells
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exAllLines); spComboBox1->PutMarkSearchColumn(VARIANT_FALSE); spComboBox1->GetColumns()->Add(L"C1"); spComboBox1->GetColumns()->Add(L"C2"); spComboBox1->GetColumns()->Add(L"C3"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("this cell merges the first two columns"); var_Items->PutCellMerge(h,long(0),long(1)); h = var_Items->AddItem(vtMissing); var_Items->PutCellCaption(h,long(1),"this cell merges the last two columns"); var_Items->PutCellMerge(h,long(1),long(2)); h = var_Items->AddItem("this cell merges the all three columns"); var_Items->PutCellMerge(h,long(0),long(1)); var_Items->PutCellMerge(h,long(0),long(2)); h = var_Items->AddItem("this draws a divider item"); var_Items->PutItemDivider(h,0); |
315 |
How can I merge cells
|
314 |
How can I change the color for separator / dividers items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMarkSearchColumn(VARIANT_FALSE); spComboBox1->PutTreeColumnIndex(-1); spComboBox1->PutScrollBySingleLine(VARIANT_FALSE); spComboBox1->GetColumns()->Add(L"C1"); spComboBox1->GetColumns()->Add(L"C2"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Cell 1"); var_Items->PutCellCaption(h,long(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."); var_Items->PutCellSingleLine(h,long(1),EXCOMBOBOXLib::exCaptionWordWrap); h = var_Items->AddItem(vtMissing); var_Items->PutItemDivider(h,0); var_Items->PutItemDividerLine(h,EXCOMBOBOXLib::DoubleDotLine); var_Items->PutItemDividerLineAlignment(h,EXCOMBOBOXLib::DividerCenter); var_Items->PutItemHeight(h,6); var_Items->PutSelectableItem(h,VARIANT_FALSE); h = var_Items->AddItem("Cell 2"); var_Items->PutCellCaption(h,long(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."); var_Items->PutCellSingleLine(h,long(1),EXCOMBOBOXLib::exCaptionWordWrap); |
313 |
How can I add separator - dividers items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMarkSearchColumn(VARIANT_FALSE); spComboBox1->PutTreeColumnIndex(-1); spComboBox1->PutScrollBySingleLine(VARIANT_FALSE); spComboBox1->GetColumns()->Add(L"C1"); spComboBox1->GetColumns()->Add(L"C2"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Cell 1"); var_Items->PutCellCaption(h,long(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."); var_Items->PutCellSingleLine(h,long(1),EXCOMBOBOXLib::exCaptionWordWrap); h = var_Items->AddItem(vtMissing); var_Items->PutItemDivider(h,0); var_Items->PutItemDividerLine(h,EXCOMBOBOXLib::DoubleDotLine); var_Items->PutItemDividerLineAlignment(h,EXCOMBOBOXLib::DividerCenter); var_Items->PutItemHeight(h,6); var_Items->PutSelectableItem(h,VARIANT_FALSE); h = var_Items->AddItem("Cell 2"); var_Items->PutCellCaption(h,long(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."); var_Items->PutCellSingleLine(h,long(1),EXCOMBOBOXLib::exCaptionWordWrap); |
312 |
Can I change the style of the line being displayed by a divider item
|
311 |
Can I remove the line being displayed by a divider item
|
310 |
How can I display a divider item, merging all cells
|
309 |
How can I fix or lock items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->PutLockedItemCount(EXCOMBOBOXLib::exTop,1); var_Items->PutCellCaption(var_Items->GetLockedItem(EXCOMBOBOXLib::exTop,0),long(0),"This is a locked item, fixed to the top side of the control."); var_Items->PutItemBackColor(var_Items->GetLockedItem(EXCOMBOBOXLib::exTop,0),RGB(196,196,186)); var_Items->PutLockedItemCount(EXCOMBOBOXLib::exBottom,2); var_Items->PutCellCaption(var_Items->GetLockedItem(EXCOMBOBOXLib::exBottom,0),long(0),"This is a locked item, fixed to the top side of the control."); var_Items->PutItemBackColor(var_Items->GetLockedItem(EXCOMBOBOXLib::exBottom,0),RGB(196,196,186)); var_Items->PutCellCaption(var_Items->GetLockedItem(EXCOMBOBOXLib::exBottom,1),long(0),"This is a locked item, fixed to the top side of the control."); var_Items->PutItemBackColor(var_Items->GetLockedItem(EXCOMBOBOXLib::exBottom,1),RGB(186,186,186)); |
308 |
How can I fix or lock an item on the bottom side of the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->PutLockedItemCount(EXCOMBOBOXLib::exBottom,1); var_Items->PutCellCaption(var_Items->GetLockedItem(EXCOMBOBOXLib::exBottom,0),long(0),"This is a locked item, fixed to the bottom side of the control."); long h = var_Items->AddItem("Root 1"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); |
307 |
How can I fix or lock an item on the top of the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->PutLockedItemCount(EXCOMBOBOXLib::exTop,1); var_Items->PutCellCaption(var_Items->GetLockedItem(EXCOMBOBOXLib::exTop,0),long(0),"This is a locked item, fixed to the top side of the control."); long h = var_Items->AddItem("Root 1"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); |
306 |
Is there any function to limit the height of the items when I display it using multiple lines
|
305 |
Why I cannot center my cells in the column
|
304 |
How can I align the cell to the left, center or to the right
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutTreeColumnIndex(-1); spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exRowLines); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->PutCellHAlignment(var_Items->AddItem("left"),long(0),EXCOMBOBOXLib::LeftAlignment); var_Items->PutCellHAlignment(var_Items->AddItem("center"),long(0),EXCOMBOBOXLib::CenterAlignment); var_Items->PutCellHAlignment(var_Items->AddItem("right"),long(0),EXCOMBOBOXLib::RightAlignment); |
303 |
How do I apply HTML format to a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutTreeColumnIndex(-1); spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spComboBox1->PutHTMLPicture(L"p1","c:\\exontrol\\images\\zipdisk.gif"); spComboBox1->PutHTMLPicture(L"p2","c:\\exontrol\\images\\auction.gif"); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("The following item shows some of the HTML format supported:"); var_Items->PutCellHAlignment(h,long(0),EXCOMBOBOXLib::CenterAlignment); h = var_Items->AddItem(_bstr_t("<br>text icons <img>1</img>, <img>2</img>, ... pictures <img>p1</img>, <img>p2</img> <br><br>text <b>bold</b>, <i>italic</i>, <") + "u>underline</u>, <s>strikeout</s>, ...<br><dotline>and so on...<br> <a>anchor</a> or <a2>hyperlink</a><br><fgcolor=FF0000>fgcolo" + "r</fgcolor> or <bgcolor=00FF00>bgcolor</bgcolor> "); var_Items->PutCellCaptionFormat(h,long(0),EXCOMBOBOXLib::exHTML); var_Items->PutCellSingleLine(h,long(0),EXCOMBOBOXLib::exCaptionWordWrap); |
302 |
How can I change the font for a cell
|
301 |
How can I change the font for a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); spComboBox1->GetItems()->AddItem("default font"); /* Includes the definition for CreateObject function like follows: #include <comdef.h> IUnknownPtr CreateObject( BSTR Object ) { IUnknownPtr spResult; spResult.CreateInstance( Object ); return spResult; }; */ /* Copy and paste the following directives to your header file as it defines the namespace 'stdole' for the library: 'OLE Automation' #import <stdole2.tlb> */ stdole::FontPtr f = ::CreateObject(L"StdFont"); f->PutName(L"Tahoma"); f->PutSize(_variant_t(long(12))); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->PutCellFont(var_Items->AddItem("new font"),long(0),IFontDispPtr(((stdole::FontPtr)(f)))); |